﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity.ModelConfiguration;
using Sahit.iSoilHotel.Domain.MainBoundedContext.Tavern.Aggregates.RoomAgg;

namespace Sahit.iSoilHotel.Infrastructure.DataAccess.MainBoundedContext.Tavern.Mapping.Rooms
{
    public class RoomTypeMap : 
        EntityTypeConfiguration<RoomType>
    {
        public RoomTypeMap()
        {
            this.ToTable("RoomType");

            this.HasKey(r => r.ID);
            this.Property(r => r.Name).HasMaxLength(50);
        }
    }
}
